package org.jeecg.modules.ws.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import org.jeecg.modules.ws.entity.WsEmailAdmin;
import org.jeecg.modules.ws.mapper.WsEmailAdminMapper;
import org.jeecg.modules.ws.service.IWsEmailAdminService;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.Collections;
import java.util.List;

/**
 * @Description: 邮箱配置
 * @Author: jeecg-boot
 * @Date:   2025-04-27
 * @Version: V1.0
 */
@Service
public class WsEmailAdminServiceImpl extends ServiceImpl<WsEmailAdminMapper, WsEmailAdmin> implements IWsEmailAdminService {

    @Override
    public List<WsEmailAdmin> getByNoticeType(String forewarnNotice) {
        LambdaQueryWrapper<WsEmailAdmin> query = Wrappers.lambdaQuery(WsEmailAdmin.class);
        query.eq(WsEmailAdmin::getNoticeType,forewarnNotice).eq(WsEmailAdmin::getDelFlag,"0");
        return list(query);
    }
}
